class AccessTokenModel {
  String? error;
  String? accessToken;
  String? expire;
  AccessTokenModel({this.error, this.accessToken, this.expire});

  AccessTokenModel.fromMap(Map json) {
    var err = '';
    var token = '';
    var exp = '';
    if (json['error'] != null) {
      err = json['error'] ?? '';
    }
    if (json['accessToken'] != null) {
      token = json['accessToken'] ?? '';
    }
    if (json['expire'] != null) {
      exp = json['expire'] ?? '';
    }
    error = err;
    accessToken = token;
    expire = exp;
  }

  @override
  String toString() {
    return '''
    <AccessTokenModel>
    error: $error
    accessToken: $accessToken
    expire: $expire
    ''';
  }
}